﻿namespace CgSilverlightDynamicGeometry
{
    using System;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Ink;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;

    public class CartesianGrid
    {
        private CartesianLabels cartesianLabels;
        private CartesianLines cartesianLines;

        public CartesianGrid(Drawing dw)
        {
            cartesianLabels = new CartesianLabels { Drawing = dw };
            cartesianLines = new CartesianLines { Drawing = dw };
        }

        public void UpdateVisual()
        {
            cartesianLines.UpdateVisual();
            cartesianLabels.UpdateVisual();
        }
    }
}
